<!-- 同意退换票 -->
<template>
  <el-dialog
    :title="dialogTitle"
    :visible.sync="visible"
    width="500px"
    @close="handleClose"
  >
    <div class="dialog-content">
      <p>是否同意“{{ applicantName }}”的退费申请？</p>
    </div>

    <div slot="footer" class="dialog-footer">
      <el-button @click="handleClose">取消</el-button>
      <el-button type="primary" @click="handleConfirm">确定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: "AgreeExchangeDialog",
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    applicantName: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      dialogTitle: "系统提示"
    };
  },
  methods: {
    handleClose() {
      this.$emit('close');
    },
    handleConfirm() {
      this.$emit('confirm');
    }
  }
};
</script>

<style scoped>
.dialog-content {
  padding: 20px;
  text-align: center;
}

.dialog-content p {
  font-size: 16px;
  color: #303133;
  margin-bottom: 20px;
}

.dialog-footer {
  text-align: right;
}
</style>